import request from '@/utils/request'
// 获取-文章分类
export const articleGetCategoryListService = () => {
  return request.get('/my/cate/list')
}
// 增加文章分类
export const articleAddCategoryService = ({ cate_name, cate_alias }) => {
  return request.post('/my/cate/add', { cate_name, cate_alias })
}
// 更新文章分类
export const articleEditCategoryService = (info) => {
  return request.put('/my/cate/info', info)
}

// 删除文章分类
export const articleDeleteCategoryService = (id) => {
  return request.delete('/my/cate/del', {
    params: { id }
  })
}
